package com.pavco.caribbeanvisit.client.event;

import java.util.ArrayList;

import com.google.gwt.event.shared.GwtEvent;
import com.pavco.caribbeanvisit.client.eventhandlers.ShowButtonEventHandler;

public class ShowButtonClickEvent extends GwtEvent<ShowButtonEventHandler> {

  private ArrayList<String> countryNames = new ArrayList<String>();
  private ArrayList<String> tagNames = new ArrayList<String>();
  public static final GwtEvent.Type<ShowButtonEventHandler> TYPE =
    new GwtEvent.Type<ShowButtonEventHandler>();
  
  @Override
  protected void dispatch(ShowButtonEventHandler handler) {
    handler.onButtonClicked(this);
  }
  
  @Override
  public GwtEvent.Type<ShowButtonEventHandler> getAssociatedType() {
    return TYPE;
  }

  public void setCountryNames(ArrayList<String> countryNames) {
    this.countryNames = countryNames;
  }

  public ArrayList<String> getCountryNames() {
    return countryNames;
  }

  public void setTagNames(ArrayList<String> tagNames) {
    this.tagNames = tagNames;
  }

  public ArrayList<String> getTagNames() {
    return tagNames;
  }
}